
#include "CIndieLib_vc2008.h"
#include "Texto.h"
#include "Mapa.h"
#include "Esfera.h"
int IndieLib()		
{
	// ----- IndieLib intialization -----

	CIndieLib *mI = CIndieLib::Instance();
	if (!mI->Init ()) return 0;	
	Texto  m;
	Mapa mapi(Punto(20,20),7,7);
  		//mapi.m_grilla[1][1]->on_off();
	//Esfera bola(Punto(25,25),8);

	while (!mI->Input->OnKeyPress (IND_ESCAPE) && !mI->Input->Quit())
	{
		// ----- Input Update ----

		mI->Input->Update ();
		
		// -------- Render -------

		mI->Render->ClearViewPort (60, 60, 60);
		mI->Render->BeginScene ();
		m.print(56);
		mapi.iniciar();
		mI->Entity2dManager->RenderEntities2d ();
		mI->Render->EndScene ();
		//mI->Render->ShowFpsInWindowTitle();
	}

	// ----- Indielib End -----
	
	mI->End ();

	return 0;
}  